<%-- 
    Document   : alterarCli
    Created on : 03/10/2012, 18:27:28
    Author     : Romulo
--%>


<%@page import="com.grupo.model.VO.Cliente"%>
<%@page import="com.gurpo.model.DAO.ClienteDAO"%>
<%@page import="java.util.List"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
          <%            
                    Integer id = new Integer(request.getParameter("id"));
                    ClienteDAO cd = new ClienteDAO();
                    Cliente c = cd.buscaPorId(id);
            %>
            <form action="Controlador?op=atualizar" method="post">            
            <input type="hidden" name="id" value="<%=c.getId()%>"/>
            nome <input type="text" name="nome" value="<%= c.getNome() %>"/>
            telefone <input type="text" name="telefone" value="<%= c.getTelefone() %>"/>
            
            <input type="submit" value="atualizar"/>
        </form>
         
      
        
      
          
         
     
 
    </body>
</html>
